import request from '@/utils/request'

// 查询病例类型维护列表
export function listBing(query) {
  return request({
    url: '/zhongyao/bing/list',
    method: 'get',
    params: query
  })
}

// 查询病例类型维护详细
export function getBing(bingId) {
  return request({
    url: '/zhongyao/bing/' + bingId,
    method: 'get'
  })
}

// 新增病例类型维护
export function addBing(data) {
  return request({
    url: '/zhongyao/bing',
    method: 'post',
    data: data
  })
}

// 修改病例类型维护
export function updateBing(data) {
  return request({
    url: '/zhongyao/bing',
    method: 'put',
    data: data
  })
}

// 删除病例类型维护
export function delBing(bingId) {
  return request({
    url: '/zhongyao/bing/' + bingId,
    method: 'delete'
  })
}
